package Generricity2;

public class Generricity1 {
    public static void main(String[] args) {
        String[] name={"John","Mary","Tom","David"};
        go(name);
        Integer[] age={25,30,28,32};
        go(age);
    }

    public static <T> void go(T[] t){
        for(T i:t){
            System.out.print(i+" ");
        }
        System.out.println();
    }
}
